package com.dhcc.bpm.modules.api.service.impl;

import com.dhcc.bpm.modules.api.entity.TransformProtocol;
import com.dhcc.bpm.modules.api.vo.TransformProtocolVO;
import com.dhcc.bpm.modules.api.mapper.TransformProtocolMapper;
import com.dhcc.bpm.modules.api.service.ITransformProtocolService;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * 协议转换表 服务实现类
 *
 * @author donghang
 * @since 2020-03-09
 */
@Service
public class TransformProtocolServiceImpl extends BaseServiceImpl<TransformProtocolMapper, TransformProtocol> implements ITransformProtocolService {

	@Override
	public IPage<TransformProtocolVO> selectTransformProtocolPage(IPage<TransformProtocolVO> page, TransformProtocolVO transformProtocol) {
		return page.setRecords(baseMapper.selectTransformProtocolPage(page, transformProtocol));
	}

	@Override
	public TransformProtocol getByAPiId(Long apiId) {
		return baseMapper.getByAPiId(apiId);
	}

}
